package cn.livingCloud.dto;

import cn.livingCloud.entity.core.CaseRecordType;

/**
 * 审核案件
 * Created by 唐旭 on 2016/6/21.
 */
public class CasePendingFormDto extends CaseOperatorForm {
    //是否通过审核
    private boolean allow = false;

    private CaseBaseDto caseDto;

    public CasePendingFormDto() {
        super();
    }

    @Override
    public CaseRecordType getRecordType() {
        if (allow) {
            recordType = CaseRecordType.FINISH;
        } else {
            recordType = CaseRecordType.REJECT_PENDING;
        }
        return recordType;
    }

    public boolean isAllow() {
        return allow;
    }

    public CasePendingFormDto setAllow(boolean allow) {
        this.allow = allow;
        return this;
    }

    public CaseBaseDto getCaseDto() {
        return caseDto;
    }

    public CasePendingFormDto setCaseDto(CaseBaseDto caseDto) {
        this.caseDto = caseDto;
        return this;
    }
}
